package com.company.beauty.kotlin

import org.slf4j.Logger
import org.slf4j.LoggerFactory

/**
 * <p>日志类</p>
 *
 * @author lili
 * @version 1.0: Logging
 * @date 2023/9/23 10:27
 */
interface ILogging {
    val log: Logger
}

class LoggingImp(loggerImpl: Logger) : ILogging {
    override val log: Logger = loggerImpl

    companion object {
        inline operator fun <reified T> invoke(): LoggingImp {
            return LoggingImp(LoggerFactory.getLogger(T::class.java))
        }
    }
}